FROM openjdk:8-jdk
MAINTAINER dcy "1540770111@qq.com"
COPY target/dcy-test-center.jar /app.jar
RUN sh -c 'touch /app.jar'
VOLUME /tmp
EXPOSE 8003
#ENV JAVA_OPTS=""
ENV JAVA_OPTS="-Dspring.profiles.active=dev"
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]